﻿using System;
using System.Collections.Generic;
using NAGFwk.UI;
using SilkeyERP.UI.Entities.Cities;

namespace SilkeyERP.UI
{
    public partial class Main : FrmMain
    {
        public Main()
        {
            InitializeComponent();
        }

        private void Main_Load(object sender, EventArgs e)
        {
            var myDic = new Dictionary<string, Type>
            {
                {"nbiCity", typeof (ContentView)},
                {"nbiAddress", typeof (Entities.Address.ContentView)},
                {"nbiProvinces", typeof (Entities.Provinces.ContentView)},
                {"nbiBank", typeof (Entities.Bank.ContentView)},
                {"nbiCustomersType", typeof (Entities.CustomerType.ContentView)},
                {"nbiPaymentMethod", typeof (Entities.PaymentMethod.ContentView)},
                {"nbiCustomer", typeof (Entities.Customer.ContentView)},
                {"nbiCurrency", typeof (Entities.Currency.ContentView)},
                {"nbiBankAccounts", typeof (Entities.BankAccounts.ContentView)},
                {"nbiSalesPerson", typeof (Entities.SalesPerson.ContentView)},
                {"nbiTaxFigure", typeof (Entities.TaxFigure.ContentView)},
                {"nbiTax", typeof (Entities.Tax.ContentView)},
                {"nbiBuyPriceList", typeof (Entities.BuyPriceList.ContentView)},
                {"nbiDynamicReporting", typeof (Entities.BI.ContentView)},
                {"nbiSalesPriceList", typeof (Entities.SalesPriceList.ContentView)}
                 
            };

            //Agregar las pantallas.
            //////////////////////

            InitNavBarItemLinks(myDic);
            NavigationInitialize("nbiDynamicReporting");
        }


    }
}
